COMPILER_JAR=/home/saisuman/Downloads/compiler.jar
CLOSURE_LOCATION=/home/saisuman/closure

default: catalog-compiled.js

catalog-compiled.js: catalog.js objectlist.js photos.js editor.js location-popup.js
	java -jar ${COMPILER_JAR} \
		--manage_closure_dependencies \
		--js ${CLOSURE_LOCATION}/closure/goog/*.js \
		--js ${CLOSURE_LOCATION}/closure/goog/*/*.js \
		--js catalog.js \
		--js objectlist.js \
		--js photos.js \
		--js editor.js \
		--js location-popup.js \
		--closure_entry_point=Catalog \
	 	--js_output_file=catalog-compiled.js \
		--warning_level=VERBOSE \
		--compilation_level=WHITESPACE_ONLY
#		--compilation_level=ADVANCED_OPTIMIZATIONS


